<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
    <title>#{userBean.login}</title>

</h:head>
<h:body>
    <ui:decorate template="/sample.xhtml">
        <ui:define name="body">
               <br/>
                <h:form>
                    <h:outputLink value="/user">
                        <h:outputFormat id="infoUser" value="#{msg.text_infoUser} "/>
                        <f:param name="id" value="#{userBean.id}" />
                    </h:outputLink><br/>
                    <h:commandLink value="#{msg.page_myFavorites}" action="myShare"/> <br/>
                    <h:commandLink value="#{msg.page_addCar}" action="/advertisement/addCar"/> <br/>
                    <h:commandLink value="#{msg.page_myAdvertisement}" action="myAdvertisement"/> <br/>
                    <h:commandLink value="#{msg.page_mySettings}" action="mySettings"/> <br/>
                    <h:panelGroup rendered="#{userBean.moderator}">
                        <h:outputText value="*********************************************"/> <br/>
                        <h:outputText value="#{userBean.login} #{msg.text_accessLevel1} = #{userBean.accessLevel}"/> <br/>

                        <h:commandLink value="#{msg.text_Adminka}" action="/admin/admin"/> <br/>
                        <!--<h:commandLink value="Редактирование объявлений" action="/Admin/view_ads"/> <br/>-->

                        <h:outputText value="*********************************************"/> <br/>
                    </h:panelGroup>
                    <h:commandLink value="#{msg.text_Out}" action="#{userBean.quit}"/>

                </h:form>




        </ui:define>
    </ui:decorate>










</h:body>
</html>


